Skip to content

Performance optimizations #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jan 25, 2025
Merged

Performance optimizations #39

merged 6 commits into from
Jan 25, 2025

Conversation

devksingh4
Copy link
Member

@devksingh4 devksingh4 commented Jan 25, 2025

  • Only create each client of the AWS SDK once.
  • Use esbuild on the typescript-emitted files, bringing the total bundle size down to 4mb from 120mb
  • Use node 22

This seems to reduce cold start duration from ~1900 ms -> ~1200ms based on a brief look at the logging.

@devksingh4 devksingh4 marked this pull request as ready for review January 25, 2025 22:42
@devksingh4 devksingh4 requested review from a team as code owners January 25, 2025 22:42
@github-actions github-actions bot temporarily deployed to management-ui-dev (Production) January 25, 2025 23:00 Inactive
@github-actions github-actions bot temporarily deployed to management-ui-dev (Production) January 25, 2025 23:09 Inactive
@devksingh4 devksingh4 merged commit 2a566c6 into main Jan 25, 2025
6 checks passed
@devksingh4 devksingh4 deleted the dsingh14/perf-optim branch January 25, 2025 23:25
eeen17 pushed a commit that referenced this pull request Feb 1, 2025
* use a single client per service

* use node 22

* minify bundle, use node 22

* fix build

* clear node cache before each test

* add dep back
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant